## test_tencent.py

public static int calMaxSize(int[] speed){
    int start_idx = 0;
//  int v_start=speed[start_idx];
    int end_inx = 0;
//  int v_end = speed[end_inx];
    int max = 1;
    for (int i=1;i<speed.length;i++){
        if (speed[i]-speed[start_idx]<=10){
            end_inx=i;
            //v_end = speed[end_inx];
            max = end_inx-start_idx+1;
        }else {
            start_idx +=1;
            //v_start = speed[start_idx];
        }
    }
    return max;
}